package com.smartbus.bus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smartbus.bus.mapper.AnnouncementLogsMapper;
import com.smartbus.bus.domain.AnnouncementLogs;
import com.smartbus.bus.service.IAnnouncementLogsService;

/**
 * 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class AnnouncementLogsServiceImpl implements IAnnouncementLogsService 
{
    @Autowired
    private AnnouncementLogsMapper announcementLogsMapper;

    /**
     * 查询报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * 
     * @param id 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查主键
     * @return 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     */
    @Override
    public AnnouncementLogs selectAnnouncementLogsById(Long id)
    {
        return announcementLogsMapper.selectAnnouncementLogsById(id);
    }

    /**
     * 查询报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查列表
     * 
     * @param announcementLogs 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * @return 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     */
    @Override
    public List<AnnouncementLogs> selectAnnouncementLogsList(AnnouncementLogs announcementLogs)
    {
        return announcementLogsMapper.selectAnnouncementLogsList(announcementLogs);
    }

    /**
     * 新增报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * 
     * @param announcementLogs 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * @return 结果
     */
    @Override
    public int insertAnnouncementLogs(AnnouncementLogs announcementLogs)
    {
        return announcementLogsMapper.insertAnnouncementLogs(announcementLogs);
    }

    /**
     * 修改报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * 
     * @param announcementLogs 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * @return 结果
     */
    @Override
    public int updateAnnouncementLogs(AnnouncementLogs announcementLogs)
    {
        return announcementLogsMapper.updateAnnouncementLogs(announcementLogs);
    }

    /**
     * 批量删除报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查
     * 
     * @param ids 需要删除的报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查主键
     * @return 结果
     */
    @Override
    public int deleteAnnouncementLogsByIds(Long[] ids)
    {
        return announcementLogsMapper.deleteAnnouncementLogsByIds(ids);
    }

    /**
     * 删除报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查信息
     * 
     * @param id 报站记录日志，记录每次报站的详细信息，用于运营分析和故障排查主键
     * @return 结果
     */
    @Override
    public int deleteAnnouncementLogsById(Long id)
    {
        return announcementLogsMapper.deleteAnnouncementLogsById(id);
    }
}
